package net.worldscale.xp.wspr.impl;

import net.worldscale.xp.wspr.IThreadEntry;
import net.worldscale.xp.wspr.WsThread;

final class ImplWsThread extends WsThread {

	public ImplWsThread(IThreadEntry te) {
		mTE = te;
		mThd = new Thread() {
			public void run() {
				mTE.run();
			}
		};
	}

	private final IThreadEntry mTE;
	private final Thread mThd;

	@Override
	public int getPriority() {
		return this.mThd.getPriority();
	}

	@Override
	public void setPriority(int newPriority) {
		this.mThd.setPriority(newPriority);
	}

	@Override
	public void start() {
		this.mThd.start();
	}

}
